package com.freesun.shop.controller;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class PayController {

    @PostMapping("/pay/{id}")
    public ResponseEntity<Void> pay(@PathVariable Long id) {
        System.out.println("支付宝来访问我了,订单ID为:"+id);
        return ResponseEntity.ok().build();
    }
}
